package yf.mall.enums;

import lombok.Getter;

import java.util.Arrays;

@Getter
public enum MallOrderSettleEnum {

    NO(0, "未结算"),
    YES(1, "已结算"),
    FAIL(2, "结算失败");


    int index;
    String value;

    public static String[] names() {
        return Arrays.stream(MallOrderSettleEnum.values()).map(m -> m.getValue()).toArray(String[]::new);
    }

    MallOrderSettleEnum(int index, String value) {
        this.index = index;
        this.value = value;
    }
}
